import React, { PureComponent } from 'react'
import classNames from 'classnames'

export class App extends PureComponent {
  constructor() {
    super()
    
    this.state = {
      isBorder: true
    }
  }

  render() {
    const { isBorder } = this.state
    return (
      <div>
        <h2 className={classNames('title', {isBorder:isBorder})}>我是标题</h2>
      </div>
    )
  }
}

export default App